package it.gat.webservice.utils;

import java.io.IOException;
import java.util.Properties;

import javax.servlet.ServletContext;

public class Impostazioni {
	
	static Properties properties;
	
	public static void load(ServletContext sc)
	{
		properties = new Properties();
		try {
			properties.load(sc.getResourceAsStream("/WEB-INF/settings.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getProperty(String key)
	{
		return properties.getProperty(key);
	}

}
